package com.zq.it.pojo;

import java.util.Set;

/**
 * Teacher entity. @author MyEclipse Persistence Tools
 */

public class Teacher implements java.io.Serializable {

	// Fields

	private long id;
	private Integer teacherId;
	private String teacherPassword;
	private String teacherName;
	private String teacherSex;
	private String teacherIdc;
	private String degree;
	private String contactWay;
	private String teacherHead;
	private Integer shenfen;
	private Admin admin;

	public Teacher() {
	}
public Teacher(Integer teacherId,String teacherName){
	this.teacherId=teacherId;
	this.teacherName=teacherName;
}
	/** minimal constructor */
	public Teacher(Integer teacherId, String teacherPassword,
			String teacherName, String teacherSex, String teacherIdc,
			String degree, String contactWay) {
		this.teacherId = teacherId;
		this.teacherPassword = teacherPassword;
		this.teacherName = teacherName;
		this.teacherSex = teacherSex;
		this.teacherIdc = teacherIdc;
		this.degree = degree;
		this.contactWay = contactWay;
	}

	/** full constructor */
	public Teacher(Integer teacherId, String teacherPassword,
			String teacherName, String teacherSex, String teacherIdc,
			String degree, String contactWay, String teacherHead,
			Integer shenfen, Set testpapers, Set tpmanagers) {
		this.teacherId = teacherId;
		this.teacherPassword = teacherPassword;
		this.teacherName = teacherName;
		this.teacherSex = teacherSex;
		this.teacherIdc = teacherIdc;
		this.degree = degree;
		this.contactWay = contactWay;
		this.teacherHead = teacherHead;
		this.shenfen = shenfen;		
	}

	// Property accessors
public void setAdmin(Admin admin){
	this.admin=admin;
}
public Admin getAdmin(){
	return admin;
}
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Integer getTeacherId() {
		return this.teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	public String getTeacherPassword() {
		return this.teacherPassword;
	}

	public void setTeacherPassword(String teacherPassword) {
		this.teacherPassword = teacherPassword;
	}

	public String getTeacherName() {
		return this.teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getTeacherSex() {
		return this.teacherSex;
	}

	public void setTeacherSex(String teacherSex) {
		this.teacherSex = teacherSex;
	}

	public String getTeacherIdc() {
		return this.teacherIdc;
	}

	public void setTeacherIdc(String teacherIdc) {
		this.teacherIdc = teacherIdc;
	}

	public String getDegree() {
		return this.degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	public String getContactWay() {
		return this.contactWay;
	}

	public void setContactWay(String contactWay) {
		this.contactWay = contactWay;
	}

	public String getTeacherHead() {
		return this.teacherHead;
	}

	public void setTeacherHead(String teacherHead) {
		this.teacherHead = teacherHead;
	}

	public Integer getShenfen() {
		return this.shenfen;
	}

	public void setShenfen(Integer shenfen) {
		this.shenfen = shenfen;
	}

	/*public Set getTestpapers() {
		return this.testpapers;
	}

	public void setTestpapers(Set testpapers) {
		this.testpapers = testpapers;
	}

	public Set getTpmanagers() {
		return this.tpmanagers;
	}

	public void setTpmanagers(Set tpmanagers) {
		this.tpmanagers = tpmanagers;
	}*/

}